package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.Event;
import com.bonuo.saas.domain.ReceiptInfo;
import com.bonuo.saas.mapper.EventMapper;
import com.bonuo.saas.mapper.ReceiptInfoMapper;
import com.bonuo.saas.service.EventService;
import com.bonuo.saas.service.ReceiptInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReceiptInfoServiceImpl implements ReceiptInfoService {

    @Autowired
    private ReceiptInfoMapper receiptInfoMapper;

    @Override
    public List<ReceiptInfo> selectReceiptInfoList(ReceiptInfo receiptInfo) {
        return receiptInfoMapper.selectReceiptInfoList(receiptInfo);
    }

    @Override
    public Integer insertReceiptInfo(ReceiptInfo receiptInfo) {
        return receiptInfoMapper.insertReceiptInfo(receiptInfo);
    }

    @Override
    public Integer updateReceiptInfo(ReceiptInfo receiptInfo) {
        return receiptInfoMapper.updateReceiptInfo(receiptInfo);
    }

    @Override
    public Integer deleteReceiptInfoById(Integer id) {
        return receiptInfoMapper.deleteReceiptInfoById(id);
    }
}
